package com.sft360.kb.drawview;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.util.AttributeSet;
import android.view.View;

public class PathView extends View {
    public PathView(Context context) {
        super(context);
    }

    public PathView(Context context,AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);

        Paint p = new Paint();
        p.setColor(Color.BLACK);
        p.reset();
        p.setStyle(Paint.Style.STROKE);
        Path path = new Path();
        path.moveTo(100,320);
        path.quadTo(150,310,170,400);
        canvas.drawPath(path,p);
    }
}
